<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Tymon\JWTAuth\Contracts\JWTSubject;

/**
* @comment
*
* @property int $id
* @property string $phone 手机号
* @property string $password 密码
* @property string $sms_code 验证码
* @property string $login_time 最后一次登录时间
* @property int $expire_time 过期时间
* @property int $type 1.京东
*
*/
class XnH5ThirdUser extends Authenticatable implements JWTSubject
{

    /**
     * @var string
     */
    protected $connection = 'mysql';
    public $timestamps = false;
    /**
     * @var string
     */
    protected $table = 'xn_h5_third_user';

    /**
     * @var string[]
    */
    protected $fillable = ['id', 'phone', 'password', 'sms_code', 'login_time', 'expire_time', 'type'];

    public function getJWTIdentifier() {
        return $this->getKey();
    }

    public function getJWTCustomClaims() {
        return [];
    }

}
